importScripts("../src/wmr.js");

wmr.service.create("helloService", {
    hello: function(name){
        //alex.service.parent.logService.log("name:" + name);
        return "Hello, " + name;
    },
    hello2: function(name){
        //alex.service.parent.logService2.log("name:" + name);
        return "Hello again, " + name;
    },
    _helloPrivate: function() {
    },
    helloError: function() {
	throw "Hello, error";
    },
    async_helloAsync: function(callback, name){
        setTimeout(function(){
            callback.success("async:Hello, " + name);
        }, 200);
    }
});

